package com.ingeniouscamel.jsf3;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.faces.bean.ManagedBean;

@ManagedBean
public class ManagerBean {
	private ManagerService managerService = new ManagerService();

	public List<Map.Entry<String, Employee>> getManagers() {
		Set<Map.Entry<String, Employee>> managerSet = managerService.getAllManagers().entrySet();
		return new ArrayList<Map.Entry<String, Employee>>(managerSet);
	}
}
